<include file='Common:head'/>
<div class="order_status1">
	<!-- <div class="timeout fl mod">超时订单({$orderNum.before})</div> -->
	<div class="today fl mod" style="width:100%;">我的订单({$orderNum.today})</div>
	<!-- <div class="book fl mod">预约订单({$orderNum.after})</div> -->
	<div class="cl"></div>
</div>

<div class="box2">
<foreach name="list" item="vo" >
<div onclick="window.location.href = '{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/server_order_info',array('ordersn'=>$vo['ordersn']))}'">
	<div class="order_info">
		<div class="info_left fl">
			<div>訂單號：{$vo.ordersn}</div>
			<div>洗車時間：<span style="color:#FF8800;">{$vo.book_start}</span>-<span style="color:#FF8800;">{$vo.book_end}</span></div>
			<div>車型：<if condition="$vo.type eq 1">五座車<elseif condition="$vo.type eq 2"/>七座車<elseif condition="$vo.type eq 3"/>其他車</if></div>
			<div>日期：{$vo.pay_time|date="Y-m-d",###}</div>
			<div>車牌：{$vo.license_plate}</div>
			<div>電話：{$vo.order_phone}</div>
		</div>
		<div class="info_right fr">
			<img src="__PRIVATE__/images/right.png"/>
		</div>
		<div class="cl"></div>
	</div>
	<if condition="$vo.wash_status eq 1 and $vo['wash_log']['start_time'] eq null">
	<div class="order_bottom_blue">尚未開始清洗</div>
	<elseif condition="$vo.wash_status eq 1 and $vo['wash_log']['start_time'] neq null"/>
	<div class="order_bottom_blue">清洗中</div>
	<elseif condition="$vo.wash_status eq 2"/>
	<div class="order_bottom_green">清洗完成</div>
	<elseif condition="$vo.wash_status eq 0 "/>
	<!-- <div class="order_bottom_yellow">沒有清洗</div> -->
	<div class="order_bottom_readlly">尚未開始</div>
	</if>
</div>
</foreach>
</div>
<script type="text/javascript">
$(document).ready(function(){
	<if condition="$_GET['type'] eq 'timeout'">
		$('title').html('超時訂單');
		$('.header .title').html('超時訂單');
		$('.order_status1 .timeout').addClass('blue_buttom');
	<elseif condition="$_GET['type'] eq 'today'"/>
		$('title').html('今日訂單');
		$('.header .title').html('今日訂單');
		$('.order_status1 .today').addClass('blue_buttom');
	<elseif condition="$_GET['type'] eq 'book'"/>
		$('title').html('今日訂單');
		$('.header .title').html('今日訂單');
		$('.order_status1 .book').addClass('blue_buttom');
	<else/>
		$('title').html('今日訂單');
		$('.header .title').html('今日訂單');
		$('.order_status1 .today').addClass('blue_buttom');
	</if>
	/* 
	$('.order_status1 .timeout').click(function(){
		window.location.href = "{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/server_order_list',array('type'=>'timeout'))}";
	});
	$('.order_status1 .today').click(function(){
		 window.location.href = "{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/server_order_list',array('type'=>'today'))}";
	});
	$('.order_status1 .book').click(function(){
		window.location.href = "{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/server_order_list',array('type'=>'book'))}";
	});
	 */
	$('.header .right').html('');
	$('.header .right').html('');
	/* $('.header .right').click(function(){
		window.location.href = '{:U(MODULE_NAME.'/server/index',array('type'=>'server'))}';
	}); */
});
</script>
<include file='Common:footer_3'/>